﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity
{
	/// <summary>
	/// 配送服务实体类
	/// </summary>
	public class DistributionInfo:BaseEntity
	{
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string OrderID { get; set; }
		/// <summary>
		/// 商品ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string GoodsId { get; set; }
		/// <summary>
		/// 用户ID
		/// </summary>
		[Column(TypeName = "nvarchar(36)")]
		public string UserId { get; set; }
		/// <summary>
		/// 配送地址
		/// </summary>
		[Column(TypeName = "nvarchar(125)")]
		public string Address { get; set; }
		/// <summary>
		/// 配送员ID
		/// </summary>
		[Column(TypeName = "varchar(36)")]
		public string DistributionId { get; set; }
		/// <summary>
		/// 配送状态
		/// </summary>
		public DistributionInfoStateEnum State { get; set; }


		/// <summary>
		/// 送达时间
		/// </summary>
        public DateTime? ServiceTime { get; set; }

		/// <summary>
		/// 揽收时间
		/// </summary>
        public DateTime CreateTime { get; set; }
		 

		public enum DistributionInfoStateEnum
		{
			配送中 = 0,
			已送达 = 1,
		}


	}
}
